package com.example.demo.controller;

import com.example.demo.entity.TbNode;
import com.example.demo.service.TbNodeService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 点位表(TbNode)表控制层
 *
 * @author makejava
 * @since 2022-11-29 14:08:39
 */
@RestController
@RequestMapping("tbNode")
public class TbNodeController {
    /**
     * 服务对象
     */
    @Resource
    private TbNodeService tbNodeService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public TbNode selectOne(Long id) {
        return this.tbNodeService.queryById(id);
    }

}
